package com.wanmait.happyheating.service.impl;

import com.wanmait.happyheating.pojo.Userinfo;
import com.wanmait.happyheating.mapper.UserinfoMapper;
import com.wanmait.happyheating.service.UserinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author yuQianTao
 * @since 2021-05-13
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class UserinfoServiceImpl extends ServiceImpl<UserinfoMapper, Userinfo> implements UserinfoService {
   @Resource
   private UserinfoMapper userinfoMapper;
    @Override
    public Userinfo login(Userinfo userinfo) {
      return userinfoMapper.login(userinfo);


    }
}
